﻿<%@ Page Title="Add a Beach" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="AddBeach.aspx.vb" Inherits="BeachesInGreeceComplete.AddBeach" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: xx-small;
            color: #993399;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <asp:Panel ID="Add_Beach" runat="server">
        <h2>
            Add Beach</h2>
        <table>
            <tr>
                <td>
                    Beach Name
                </td>
                <td>
                    <asp:TextBox ID="tb_beachName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_beachName"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Region
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Region" runat="server">
                        <asp:ListItem Selected="True">Thrace</asp:ListItem>
                        <asp:ListItem>Macedonia</asp:ListItem>
                        <asp:ListItem>Thessaly</asp:ListItem>
                        <asp:ListItem>Epirus</asp:ListItem>
                        <asp:ListItem>Central Greece</asp:ListItem>
                        <asp:ListItem>Peloponnese</asp:ListItem>
                        <asp:ListItem>Aegean Islands</asp:ListItem>
                        <asp:ListItem>Ionian Islands</asp:ListItem>
                        <asp:ListItem>Crete</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Location
                </td>
                <td>
                    <asp:TextBox ID="tb_Location" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tb_Location"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Blue Flag
                </td>
                <td>
                    <asp:RadioButtonList ID="rbl_Flag" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="-1">Yes</asp:ListItem>
                        <asp:ListItem Value="0">No</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    Description
                </td>
                <td>
                    <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tb_Description"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Review
                </td>
                <td>
                    <asp:TextBox ID="tb_Review" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tb_Review"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    User Rating
                </td>
                <td>
                    <asp:RadioButtonList ID="rbl_Rating" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    Picture
                    <br />
                    <span class="style1"><em>(Pref. Min. Res. 500x400)</em></span></td>
                <td>
                    <asp:FileUpload ID="f_Picture" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="f_Picture"
                        CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="f_Picture"
                        CssClass="field-validation-error" ErrorMessage="Please Upload a valid Picture format"
                        ValidationExpression="^.*\.(jpg|JPG|JPEG|jpeg|gif|GIF|png|PNG|bmp|BMP)$"></asp:RegularExpressionValidator>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <asp:Button ID="btn_AddBeach" runat="server" Text="Add Beach" CssClass="m-btn blue" />
    </asp:Panel>
    <asp:Panel ID="Add_Activity" runat="server">
        <h2>
            Add an Activity</h2>
        <table>
            <tr>
                <td>
                    Activities
                </td>
                <td>
                    <asp:CheckBoxList ID="cbl_Activities" runat="server" DataSourceID="SqlDataSource2"
                        DataTextField="ActivityName" DataValueField="ActivityName" RepeatDirection="Horizontal" RepeatColumns="4">
                    </asp:CheckBoxList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BeachConnectionString %>"
                        ProviderName="<%$ ConnectionStrings:BeachConnectionString.ProviderName %>" SelectCommand="SELECT DISTINCT [ActivityName] FROM [Activities]">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td>
                    Add your own Activity
                </td>
                <td>
                    <asp:TextBox ID="tb_Activity" runat="server"></asp:TextBox>
                </td>
        </table>
        <br />
        <asp:Button ID="btn_AddActivity" runat="server" Text="Add Activity" CssClass="m-btn blue" />
        <asp:Button ID="btn_NoThanks" runat="server" Text="No Thanks" CssClass="m-btn blue"/>
    </asp:Panel>
    <asp:Panel ID="Add_FoodDrink" runat="server">
        <h2>
            Bar - Coffee - Food</h2>

            <table>
                <tr>
                    <td>
                        Name</td>
                    <td>
                        <asp:TextBox ID="tb_Food" runat="server" ViewStateMode="Enabled"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="tb_Food" CssClass="field-validation-error" 
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Type</td>
                    <td>
                        <asp:CheckBoxList ID="cbl_Food" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="Restaurant">Restaurant</asp:ListItem>
                            <asp:ListItem Value="Coffee">Coffee</asp:ListItem>
                            <asp:ListItem Value="Bar">Bar</asp:ListItem>
                        </asp:CheckBoxList>
                        <asp:Label ID="lbl_ChooseType" runat="server" CssClass="field-validation-error"></asp:Label>
                    </td>
                </tr>
        </table>
            <br />
            <asp:Button ID="btn_AddFood" runat="server" Text="Add" 
            CssClass="m-btn blue" />
            <asp:Button ID="btn_NoThanksFood" runat="server" Text="No Thanks" CssClass="m-btn blue" ValidationGroup="None"/>
    </asp:Panel>
    <asp:Panel ID="Add_Accommodation" runat="server">
        <h2>
            Add a hotel</h2>

            <table>
                <tr>
                    <td>
                        Hotel Name</td>
                    <td>
                        <asp:TextBox ID="tb_HotelName" runat="server" ViewStateMode="Enabled"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            CssClass="field-validation-error" ErrorMessage="*" 
                            ControlToValidate="tb_HotelName"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Recommended</td>
                    <td>
                        <asp:RadioButtonList ID="rbl_Hotel" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="-1">Yes</asp:ListItem>
                            <asp:ListItem Value="0">No</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Location</td>
                    <td>
                        <asp:TextBox ID="tb_HotelLocation" runat="server" ViewStateMode="Enabled"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            CssClass="field-validation-error" ErrorMessage="*" 
                            ControlToValidate="tb_HotelLocation"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td>
                        Facilities</td>
                    <td>
                        <asp:TextBox ID="tb_Facilities" runat="server" ViewStateMode="Enabled"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                            CssClass="field-validation-error" ErrorMessage="*" 
                            ControlToValidate="tb_Facilities"></asp:RequiredFieldValidator>
                    </td>
                </tr>
        </table>
        <br />
        <asp:Button ID="btn_Hotel" runat="server" Text="Add Hotel" CssClass="m-btn blue" />
        <asp:Button ID="btn_NoThanksAccom" runat="server" Text="No Thanks" CssClass="m-btn blue" ValidationGroup="None"/>
    </asp:Panel>
    <asp:Panel ID="ReturnPanel" runat="server">
        <h2>
            Thanks!</h2>
        <br />
        <br />
        <asp:Button ID="btn_BackToList" runat="server" Text="See all Beaches" CssClass="m-btn blue" />
    </asp:Panel>
</asp:Content>
